package com.example.demo.pojo;

import lombok.Data;

import java.util.List;

@Data
public class PrivateMsg {

    private Long self_id;
    private Long user_id;
    private Long time;
    private Long message_id;
    private Long message_seq;
    private Long real_id;
    private String real_seq;
    private String message_type;
    private Sender sender;
    private String raw_message;
    private Integer font;
    private String sub_type;
    private List<MessageSegment> message;
    private String message_format;
    private String post_type;
    private Long target_id;


    @Data
    public static class Sender {
        private Long user_id;
        private String nickname;
        private String card;
    }


    @Data
    public static class MessageSegment {
        private String type;
        private MessageData data;
    }

    @Data
    public static class MessageData {
        private String text;
    }
}
